package com.huatai.bpmn.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huatai.bpmn.entity.YYFormEntity;
import com.huatai.bpmn.entity.YYKeyHistoryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  表单
 * </p>
 *
 * @author yxy
 * @since 2023-07-07
 */
@Mapper
public interface YYKeyHistoryMapper extends BaseMapper<YYKeyHistoryEntity> {

	@Select("select a.id,a.his_key as hisKey,a.his_value as hisValue,a.business_key from yy_key_history a where a.business_key=\"${businessKey}\";")
    List<JSONObject> listByBusinessKey(String businessKey);
}
